package com.topscomm.mis.cbb.pm.controller;

import com.topscomm.basic.util.PrimaryKeyUtil;
import com.topscomm.cbo.service.ICboApprovalNodeInsService;
import com.topscomm.cbo.service.ICboApprovalNodeService;
import com.topscomm.mis.cbb.pm.api.IProjectService;
import com.topscomm.mis.cbb.pm.api.ITaskService;
import com.topscomm.mis.cbb.pm.base.pojo.CbbPmTaskEntity;
import com.topscomm.mis.cbb.pm.base.service.ICbbPmTaskBackRecordService;
import com.topscomm.mis.cbb.pm.base.service.ICbbPmTaskEditDocService;
import com.topscomm.mis.cbb.pm.base.service.ICbbPmTaskService;
import com.topscomm.mis.cbb.pm.controller.auto.CbbPmTaskControllerAuto;
import com.topscomm.mis.cbb.pm.util.PmSystemConst;
import com.topscomm.pub.util.BaseUtil;
import com.topscomm.pub.util.ConvertUtil;
import com.topscomm.pub.util.StringBufferProxy;
import com.topscomm.pub.util.StringUtil;
import com.topscomm.pub.vo.Page;
import com.topscomm.pub.vo.ResponseResult;
import com.topscomm.tap.common.TapSystemConst;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Validated
@RestController
@RequestMapping("cbb/pmProject")
public class CbbPmProjectController extends CbbPmTaskControllerAuto {
    @Autowired
    private IProjectService projectService;

    @GetMapping(value = "/abandon")
    public ResponseResult<Object> abandon(@RequestParam(required = false) Map<String, Object> paraMap) {
        projectService.abandon(paraMap, getUserBean());
        return ResponseResult.ok("操作成功");
    }
}
